﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Tools.Ribbon;
using XiuXiuTools;

namespace LightExcelAddIn
{
    public partial class RibbonTool
    {
        MyXiuXiuTools tool = new MyXiuXiuTools();
        private void RibbonTool_Load(object sender, RibbonUIEventArgs e)
        {

        }

        private void buttonKaoHe_Click(object sender, RibbonControlEventArgs e)
        {
            tool.ShowImpDataFrm();
        }

        private void btnExport_Click(object sender, RibbonControlEventArgs e)
        {
            var fileName=tool.ShowExportDataForm();
            if (!string.IsNullOrEmpty(fileName))
            {
                var wb=Globals.ThisAddIn.Application.Workbooks.Open(fileName);
                
            }

        }

        private void btnUserMgl_Click(object sender, RibbonControlEventArgs e)
        {
            tool.ShowUserDataFrm();
        }

        private void buttonGY_Click(object sender, RibbonControlEventArgs e)
        {
            tool.ShowAboutForm();
        }
    }
}
